package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class LabelThreeIndexExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LabelThreeIndexExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andThreeindexidIsNull() {
            addCriterion("threeIndexId is null");
            return (Criteria) this;
        }

        public Criteria andThreeindexidIsNotNull() {
            addCriterion("threeIndexId is not null");
            return (Criteria) this;
        }

        public Criteria andThreeindexidEqualTo(Integer value) {
            addCriterion("threeIndexId =", value, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexidNotEqualTo(Integer value) {
            addCriterion("threeIndexId <>", value, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexidGreaterThan(Integer value) {
            addCriterion("threeIndexId >", value, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexidGreaterThanOrEqualTo(Integer value) {
            addCriterion("threeIndexId >=", value, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexidLessThan(Integer value) {
            addCriterion("threeIndexId <", value, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexidLessThanOrEqualTo(Integer value) {
            addCriterion("threeIndexId <=", value, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexidIn(List<Integer> values) {
            addCriterion("threeIndexId in", values, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexidNotIn(List<Integer> values) {
            addCriterion("threeIndexId not in", values, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexidBetween(Integer value1, Integer value2) {
            addCriterion("threeIndexId between", value1, value2, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexidNotBetween(Integer value1, Integer value2) {
            addCriterion("threeIndexId not between", value1, value2, "threeindexid");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameIsNull() {
            addCriterion("threeIndexName is null");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameIsNotNull() {
            addCriterion("threeIndexName is not null");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameEqualTo(String value) {
            addCriterion("threeIndexName =", value, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameNotEqualTo(String value) {
            addCriterion("threeIndexName <>", value, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameGreaterThan(String value) {
            addCriterion("threeIndexName >", value, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameGreaterThanOrEqualTo(String value) {
            addCriterion("threeIndexName >=", value, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameLessThan(String value) {
            addCriterion("threeIndexName <", value, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameLessThanOrEqualTo(String value) {
            addCriterion("threeIndexName <=", value, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameLike(String value) {
            addCriterion("threeIndexName like", value, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameNotLike(String value) {
            addCriterion("threeIndexName not like", value, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameIn(List<String> values) {
            addCriterion("threeIndexName in", values, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameNotIn(List<String> values) {
            addCriterion("threeIndexName not in", values, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameBetween(String value1, String value2) {
            addCriterion("threeIndexName between", value1, value2, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andThreeindexnameNotBetween(String value1, String value2) {
            addCriterion("threeIndexName not between", value1, value2, "threeindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameIsNull() {
            addCriterion("twoIndexName is null");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameIsNotNull() {
            addCriterion("twoIndexName is not null");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameEqualTo(String value) {
            addCriterion("twoIndexName =", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameNotEqualTo(String value) {
            addCriterion("twoIndexName <>", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameGreaterThan(String value) {
            addCriterion("twoIndexName >", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameGreaterThanOrEqualTo(String value) {
            addCriterion("twoIndexName >=", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameLessThan(String value) {
            addCriterion("twoIndexName <", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameLessThanOrEqualTo(String value) {
            addCriterion("twoIndexName <=", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameLike(String value) {
            addCriterion("twoIndexName like", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameNotLike(String value) {
            addCriterion("twoIndexName not like", value, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameIn(List<String> values) {
            addCriterion("twoIndexName in", values, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameNotIn(List<String> values) {
            addCriterion("twoIndexName not in", values, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameBetween(String value1, String value2) {
            addCriterion("twoIndexName between", value1, value2, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andTwoindexnameNotBetween(String value1, String value2) {
            addCriterion("twoIndexName not between", value1, value2, "twoindexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameIsNull() {
            addCriterion("indexName is null");
            return (Criteria) this;
        }

        public Criteria andIndexnameIsNotNull() {
            addCriterion("indexName is not null");
            return (Criteria) this;
        }

        public Criteria andIndexnameEqualTo(String value) {
            addCriterion("indexName =", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameNotEqualTo(String value) {
            addCriterion("indexName <>", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameGreaterThan(String value) {
            addCriterion("indexName >", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameGreaterThanOrEqualTo(String value) {
            addCriterion("indexName >=", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameLessThan(String value) {
            addCriterion("indexName <", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameLessThanOrEqualTo(String value) {
            addCriterion("indexName <=", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameLike(String value) {
            addCriterion("indexName like", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameNotLike(String value) {
            addCriterion("indexName not like", value, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameIn(List<String> values) {
            addCriterion("indexName in", values, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameNotIn(List<String> values) {
            addCriterion("indexName not in", values, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameBetween(String value1, String value2) {
            addCriterion("indexName between", value1, value2, "indexname");
            return (Criteria) this;
        }

        public Criteria andIndexnameNotBetween(String value1, String value2) {
            addCriterion("indexName not between", value1, value2, "indexname");
            return (Criteria) this;
        }

        public Criteria andPackagelabelIsNull() {
            addCriterion("Packagelabel is null");
            return (Criteria) this;
        }

        public Criteria andPackagelabelIsNotNull() {
            addCriterion("Packagelabel is not null");
            return (Criteria) this;
        }

        public Criteria andPackagelabelEqualTo(String value) {
            addCriterion("Packagelabel =", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelNotEqualTo(String value) {
            addCriterion("Packagelabel <>", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelGreaterThan(String value) {
            addCriterion("Packagelabel >", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelGreaterThanOrEqualTo(String value) {
            addCriterion("Packagelabel >=", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelLessThan(String value) {
            addCriterion("Packagelabel <", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelLessThanOrEqualTo(String value) {
            addCriterion("Packagelabel <=", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelLike(String value) {
            addCriterion("Packagelabel like", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelNotLike(String value) {
            addCriterion("Packagelabel not like", value, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelIn(List<String> values) {
            addCriterion("Packagelabel in", values, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelNotIn(List<String> values) {
            addCriterion("Packagelabel not in", values, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelBetween(String value1, String value2) {
            addCriterion("Packagelabel between", value1, value2, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andPackagelabelNotBetween(String value1, String value2) {
            addCriterion("Packagelabel not between", value1, value2, "packagelabel");
            return (Criteria) this;
        }

        public Criteria andProportionIsNull() {
            addCriterion("proportion is null");
            return (Criteria) this;
        }

        public Criteria andProportionIsNotNull() {
            addCriterion("proportion is not null");
            return (Criteria) this;
        }

        public Criteria andProportionEqualTo(Float value) {
            addCriterion("proportion =", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotEqualTo(Float value) {
            addCriterion("proportion <>", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionGreaterThan(Float value) {
            addCriterion("proportion >", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionGreaterThanOrEqualTo(Float value) {
            addCriterion("proportion >=", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionLessThan(Float value) {
            addCriterion("proportion <", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionLessThanOrEqualTo(Float value) {
            addCriterion("proportion <=", value, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionIn(List<Float> values) {
            addCriterion("proportion in", values, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotIn(List<Float> values) {
            addCriterion("proportion not in", values, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionBetween(Float value1, Float value2) {
            addCriterion("proportion between", value1, value2, "proportion");
            return (Criteria) this;
        }

        public Criteria andProportionNotBetween(Float value1, Float value2) {
            addCriterion("proportion not between", value1, value2, "proportion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionIsNull() {
            addCriterion("threeIndexQuestion is null");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionIsNotNull() {
            addCriterion("threeIndexQuestion is not null");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionEqualTo(String value) {
            addCriterion("threeIndexQuestion =", value, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionNotEqualTo(String value) {
            addCriterion("threeIndexQuestion <>", value, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionGreaterThan(String value) {
            addCriterion("threeIndexQuestion >", value, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionGreaterThanOrEqualTo(String value) {
            addCriterion("threeIndexQuestion >=", value, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionLessThan(String value) {
            addCriterion("threeIndexQuestion <", value, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionLessThanOrEqualTo(String value) {
            addCriterion("threeIndexQuestion <=", value, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionLike(String value) {
            addCriterion("threeIndexQuestion like", value, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionNotLike(String value) {
            addCriterion("threeIndexQuestion not like", value, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionIn(List<String> values) {
            addCriterion("threeIndexQuestion in", values, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionNotIn(List<String> values) {
            addCriterion("threeIndexQuestion not in", values, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionBetween(String value1, String value2) {
            addCriterion("threeIndexQuestion between", value1, value2, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionNotBetween(String value1, String value2) {
            addCriterion("threeIndexQuestion not between", value1, value2, "threeindexquestion");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaIsNull() {
            addCriterion("threeIndexQuestionTea is null");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaIsNotNull() {
            addCriterion("threeIndexQuestionTea is not null");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaEqualTo(String value) {
            addCriterion("threeIndexQuestionTea =", value, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaNotEqualTo(String value) {
            addCriterion("threeIndexQuestionTea <>", value, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaGreaterThan(String value) {
            addCriterion("threeIndexQuestionTea >", value, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaGreaterThanOrEqualTo(String value) {
            addCriterion("threeIndexQuestionTea >=", value, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaLessThan(String value) {
            addCriterion("threeIndexQuestionTea <", value, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaLessThanOrEqualTo(String value) {
            addCriterion("threeIndexQuestionTea <=", value, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaLike(String value) {
            addCriterion("threeIndexQuestionTea like", value, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaNotLike(String value) {
            addCriterion("threeIndexQuestionTea not like", value, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaIn(List<String> values) {
            addCriterion("threeIndexQuestionTea in", values, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaNotIn(List<String> values) {
            addCriterion("threeIndexQuestionTea not in", values, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaBetween(String value1, String value2) {
            addCriterion("threeIndexQuestionTea between", value1, value2, "threeindexquestiontea");
            return (Criteria) this;
        }

        public Criteria andThreeindexquestionteaNotBetween(String value1, String value2) {
            addCriterion("threeIndexQuestionTea not between", value1, value2, "threeindexquestiontea");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}